package top.lemna.base.core.exception;

import lombok.Getter;

@Getter
public class RecordAlreadyExistException extends RecordException {
  private static final long serialVersionUID = 1L;
  private Long id;

  public RecordAlreadyExistException(String message) {
    super(message);
  }
  
  public RecordAlreadyExistException(Long id) {
    super("找不到对应的记录");
    this.id = id;
  }

}
